package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface NursingProjectMapper {

    // 插入数据
    int insert(NursingProject nursingProject);

    // 根据ID查询数据
    NursingProjectVo selectById(@Param("id") Long id);

    // 查询所有数据
    List<NursingProject> selectAll();

    // 更新数据
    int update(NursingProject nursingProject);

    // 删除数据
    int deleteById(@Param("id") Long id);

    //分页的条件查询
    public Page<NursingProjectVo> selectByPage(String name,Integer status);
}